<?php defined('SYSPATH') or die('No direct script access.');
//前台路由规则
Route::set('api_pc_standard_main', 'api/standard(/<controller>(/<action>(/<params>)))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'test',
        'action' => 'test',
        'directory' =>'pc/api/standard',

    ));
Route::set('api_pc_extension_main', 'api/extension(/<controller>(/<action>(/<params>)))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'test',
        'action' => 'test',
        'directory' =>'pc/api/extension',

    ));
Route::set('api_pc_v2_member', 'api/v2/member(/<controller>(/<action>(/<params>)))', array('params' => '.*'))
->defaults(array(
    'controller' => 'index',
    'action' => 'main',
    'directory' =>'pc/api/v2/member',

));
// 导游个人中心
Route::set('api_pc_v2_guide_member', 'api/v2/guide/member(/<action>(/<params>))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'member',
        'action' => 'index',
        'directory' =>'pc/api/v2/guide',
    ));
// 支付路由
Route::set('api_pc_v2_payment', 'api/v2/payment(/<controller>(/<action>(/<params>)))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'wechatapp',
        'action' => 'index',
        'directory' =>'pc/api/v2/payment',
    ));
//营销应用
Route::set('api_pc_v2_marketing', 'api/v2/marketing(/<controller>(/<action>(/<params>)))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'seckill',
        'action' => 'list',
        'directory' =>'pc/api/v2/marketing',
    ));
//字节系统
Route::set('api_pc_v2_toutiao', 'api/v2/toutiao(/<controller>(/<action>(/<params>)))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'trade',
        'action' => 'list',
        'directory' =>'pc/api/v2/toutiao',
    ));
//uniapp路由规则
Route::set('api_pc_v2_main', 'api/v2(/<controller>(/<action>(/<params>)))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'index',
        'action' => 'main',
        'directory' =>'pc/api/v2',

    ));

